flag_locked: bool,
arg_args: Vec<String>,
flag_all: bool,
+ flag_exclude: Vec<String>,
}
pub const USAGE: &'static str = "
--no-run Compile, but don't run benchmarks
-p SPEC, --package SPEC ... Package to run benchmarks for
--all Benchmark all packages in the workspace
+ --exclude SPEC ... Exclude packages from the benchmark
-j N, --jobs N Number of parallel jobs, defaults to # of CPUs
--features FEATURES Space-separated list of features to also build
--all-features Build all available features
pub fn execute(options: Options, config: &Config) -> CliResult {
let root = find_root_manifest_for_wd(options.flag_manifest_path, config.cwd())?;
- let spec = if options.flag_all {
- Packages::All
- } else {
- Packages::Packages(&options.flag_package)
- };
+ let spec = Packages::from_flags(options.flag_all,
+ &options.flag_exclude,
+ &options.flag_package)?;
config.configure(options.flag_verbose,
options.flag_quiet,
-h, --help Print this message
-p SPEC, --package SPEC ... Package(s) to check
--all Check all packages in the workspace
+ --exclude SPEC ... Exclude packages from the check
-j N, --jobs N Number of parallel jobs, defaults to # of CPUs
--lib Check only this package's library
--bin NAME Check only the specified binary
flag_locked: bool,
flag_frozen: bool,
flag_all: bool,
+ flag_exclude: Vec<String>,
}
pub fn execute(options: Options, config: &Config) -> CliResult {
let root = find_root_manifest_for_wd(options.flag_manifest_path, config.cwd())?;
let ws = Workspace::new(&root, config)?;
- let spec = if options.flag_all {
- Packages::All
- } else {
- Packages::Packages(&options.flag_package)
- };
+ let spec = Packages::from_flags(options.flag_all,
+ &options.flag_exclude,
+ &options.flag_package)?;
let opts = CompileOptions {
config: config,
flag_frozen: bool,
flag_locked: bool,
flag_all: bool,
+ flag_exclude: Vec<String>,
}
pub const USAGE: &'static str = "
--no-run Compile, but don't run tests
-p SPEC, --package SPEC ... Package to run tests for
--all Test all packages in the workspace
+ --exclude SPEC ... Exclude packages from the test
-j N, --jobs N Number of parallel builds, see below for details
--release Build artifacts in release mode, with optimizations
--features FEATURES Space-separated list of features to also build
&options.flag_bench, options.flag_benches);
}
- let spec = if options.flag_all {
- Packages::All
- } else {
- Packages::Packages(&options.flag_package)
- };
+ let spec = Packages::from_flags(options.flag_all,
+ &options.flag_exclude,
+ &options.flag_package)?;
let ops = ops::TestOptions {
no_run: options.flag_no_run,